package procilege.lang;

public class RelationalExpr implements PredicateExpr {

	public final static int RELATION_EQ = 0;

	public final static int RELATION_NEQ = 1;

	public final static int RELATION_GE = 2;

	public final static int RELATION_GT = 3;

	public final static int RELATION_LE = 4;

	public final static int RELATION_LT = 5;

	public final static int RELATION_CATEGORY = 6;

	private int relation;

	private PredicateExpr left;

	private PredicateExpr right;

	public RelationalExpr() {
	}

	public RelationalExpr(int relation, PredicateExpr left, PredicateExpr right) {

		if (left == null || right == null)
			throw new NullPointerException();

		this.relation = relation;

		this.left = left;
		this.right = right;
	}

	public int getRelation() {
		return relation;
	}

	public PredicateExpr getLeft() {
		return left;
	}

	public PredicateExpr getRight() {
		return right;
	}
}
